﻿using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myapp.Instances
{
    public class MainInstance
    {
        /// <summary>
        /// EventAggregator
        /// </summary>
        public IEventAggregator EventAggregator { get; set; }

        /// <summary>
        /// Static Instance
        /// </summary>
        private static MainInstance _instance;

        public MainInstance(

        /// <summary>
        /// Get current EventAggregatorInstance
        /// </summary>
        public static MainInstance Instance
        {
            get
            {
                if (null == _instance)
                {
                    _instance = new MainInstance();
                }
                return _instance;
            }
        }
    }
}
